const App = getApp()

let pageNo = 1;

Page({
  data: {
     

    orderList: [
      {
        id: 1,
        status: 'FINISHED',
        address: '内蒙古科技大学',
        cate: [{
          name: '氧气',
          
          amount:1
        }, {
          name: '氧气1',   
          amount: 2
        }],
      },
      {
        id: 2,
        name: '氧气', 
        status: 'CANCELED',
        address: '包头师范学院',
        cate: [{
          name: '氧气',
        
          amount: 1
        }, {
          name: '氧气1',
         
          amount: 2
        }],
        
      },
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
    printOrder:false,



    pageLoad: false,
    orderStatus: {
      
      FINISHED: '已完成',
      CANCELED: '已取消'
    },
  },

  backOrder:function(e){
    var that=this;
    wx.showToast({
      title: '已退单',
    })
  },
  postOrder:function(e){
    var that = this;
    that.setData({
      printOrder: true,
    })
    wx.showToast({
      title: '已确认接单',
    })
  },
  printOrder: function (e){
    wx.showToast({
      title: '功能开发中',
    })
  }



})